import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './plugins/element.js'

// 导入样式表
import './assets/css/global.css'

import axios from 'axios'
axios.defaults.baseURL = 'http://127.0.0.2:3000/'
// 确保每一次请求都会先发送token获取权限
// fuck 不会写后端，直接默认吧
// axios.interceptors.request.use(config => {
//   config.headers.authority = window.sessionStorage.getItem('token')
//   return config
// })
Vue.prototype.$http = axios

Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
